<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminMod.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<!--框架必需start-->
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/framework.js"></script>
<link href="ui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="/"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<link href="ui/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<!--框架必需end-->
<script>
	$(function(){
		$("#id").val(top.document.getElementById("frmright").contentWindow.id);
		$("#adminName").val(top.document.getElementById("frmright").contentWindow.adminName);
		$("#email").val(top.document.getElementById("frmright").contentWindow.email);
		$("#phoneNumber").val(top.document.getElementById("frmright").contentWindow.phoneNumber);
		$("#roles").val(top.document.getElementById("frmright").contentWindow.roles);
		$("#managementStation").val(top.document.getElementById("frmright").contentWindow.managementStation);
	});
</script>
<body>
	<div class="box1" whiteBg="true">
	<form id="modForm" action="<%=path%>/adminMod.action" method="post">
	<table class="tableStyle" formMode="transparent">
		<tr>
			<td>编号：</td><td><input type="text" id="id" name="admin.id" readonly="readonly"/></td>
		</tr>
		<tr>
			<td>管理员账号：</td><td><input type="text" id="adminName" name="admin.adminName"/></td>
		</tr>
		<tr>
			<td>电子邮箱：</td><td><input type="text" id="email" name="admin.email"/></td>
		</tr>
		<tr>
			<td>电话号码：</td><td><input type="text" id="phoneNumber" name="admin.phoneNumber"/></td>
		</tr>
		<tr>
			<td>管理权限：</td>
			<td>
				<select id="sel-15" keepDefaultStyle="true" name="admin.roles">
						<option value="1">超级管理员</option>
						<option value="2" selected="selected">普通管理员</option>
				</select>
			</td>
		</tr>
		<tr>	
				<td>管理站：</td>
								<td >
									<select id="sel-15"  keepDefaultStyle="true" name="admin.managementStation.MSId">
										<s:iterator value="stations" var="st">
											 <option value="<s:property value="#st.MSId"/>">
											 	<s:property value="#st.MSName"/>
											 </option>
										</s:iterator>
									</select>
								</td>
			</tr>
		<tr>
			<td colspan="2">
				<!-- <input type="button" value=" 提 交 " onclick="refreshRow()"/> -->
				<input type="submit" value="提交"/>
				<input type="reset" value=" 重 置 "/>
			</td>
		</tr>
	</table>
	</form>
	</div>
	<script type="text/javascript">
		function refreshRow(){
			 //modForm.action="adminMod.action";
		     modForm.submit();
		     window.close();
		//top.document.getElementById("frmright").contentWindow.refreshRow(val0,val1,val2,val3);
		//window.top.framename.location.href="asmple/table/adminList.jsp";
		//top.Dialog.close();
		//return true;
	}
	</script>
	<div>
	</div>
</body>
</html>
